package com.ryskoo.cms.advertpicrel.domain;

import com.ryskoo.framework.core.bean.BasicPO;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 广告图片关联表：一个广告最多关联6张图片
 *
 * @author thq
 * @data 2018-05-03
 */
@Entity
@Table(name = "CMS_ADVERT_PIC_REL")
public class AdvertPicRelPO extends BasicPO {
	private static final long serialVersionUID = 1L;

	/** 广告Id */
    @Column(name = "advert_id", columnDefinition = "char(32)", length = 32)
    private String advertId;

    /** 图片地址 */
    @Column(name = "pic_url", length = 200)
    private String url;
    
    /** 图片外链 */
    @Column(name = "pic_link", length = 60)
    private String link;

    /** 排序*/
    @Column(name = "position")
    private int position;

	public String getAdvertId() {
		return advertId;
	}

	public void setAdvertId(String advertId) {
		this.advertId = advertId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public int getPosition() {
		return position;
	}

	public void setPosition(int position) {
		this.position = position;
	}

	@Override
	public String toString() {
		return "AdvertPicRelPO [advertId=" + advertId + ", url=" + url
				+ ", link=" + link + ", position=" + position + "]";
	}
}
